package dataBase;

import org.hibernate.Session;


public class FileManager {
	private Session session = null;
	public FileManager(Session session){
		if (session == null)
			throw new
			RuntimeException("Invalid session object");
		this.session = session;
	}
	public void saveFile(File file){
		session.save(file);
	}
	public void updateFile(File file){
		session.update(file);
	}
	public void deleteFile(File file){
		session.delete(file);
	}
}
